import request from '@/utils/http'; // 导入http中创建的axios实例
import qs from "qs"
const address = {
	//获取用户的默认地址
	userDefaultAddress(params){
		return request({
			url:'/user/DAI/default/info',
			method:'get'
		})
	},
	//获取地址列表
	userAddressList(params){
		return request({
			url:'/user/DAI/list',
			method:'get'
		})
	},
	//新增地址
	addAddress(params){
		return request({
			url:'/user/DAI/add',
			method:'post',
			data:params
		})
	},
	//设为默认地址
	setDefaultAddress(params){
		return request({
			url:'/user/DAI/set/default',
			method:'put',
			data:params
		})
	},
	//编辑地址
	editAddress(params){
		return request({
			url:'/user/DAI/update',
			method:'post',
			data:params 
		})
	}
}
export default address